package com.key.win.business.chat.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.key.win.base.model.MybatisID;
import com.key.win.business.chat.eums.ImGroupStatusEnum;
import com.key.win.business.chat.eums.ImGroupTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("群")
@Data
@TableName("im_group")
@EqualsAndHashCode(callSuper = true)
public class ImGroup extends MybatisID {
    @ApiModelProperty("组名称")
    private String name;
    @ApiModelProperty("当前人在群组里的昵称")
    private String mine;
    @ApiModelProperty("群主ID（指向用户表）")
    private String userId;
    @ApiModelProperty("群图标")
    private String icon;
    @ApiModelProperty("群介绍")
    private String introduce;
    @ApiModelProperty("群公告")
    private String notice;
    @ApiModelProperty("群公告Id")
    private String noticeId;
    @ApiModelProperty("群类型")
    private ImGroupTypeEnum type = ImGroupTypeEnum.NORMAL;
    @ApiModelProperty("群状态")
    private ImGroupStatusEnum status = ImGroupStatusEnum.VALID;

    public String getAvatar() {
        return this.icon;
    }
}
